package uk.org.kano.wifilogin;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class AccountsActivity extends Activity
{
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        // run
        setContentView(R.layout.accounts);
    }
    
    
    @Override
    public void onPause()
    {
    	super.onPause();
    	this.setResult(1);
    }
    
    /**
     * Build the menu
     */
    @Override
    public boolean onCreateOptionsMenu(Menu menu)
    {
    	MenuInflater inflater = getMenuInflater();
    	inflater.inflate(R.menu.basic_menu, menu);
    	return true;
    }
    
    /**
     * The menu listener
     */
    @Override
    public boolean onOptionsItemSelected(MenuItem item)
    {
    	switch (item.getItemId()) {
    	case R.id.create_item:
    		return true;
    	default:
    		return super.onOptionsItemSelected(item);
    	}
    }
}